package com.hall.service;

import com.hall.pojo.RegisterVo;
import com.hall.pojo.SysUser;
import com.hall.pojo.SysUserPermission;
import com.hall.pojo.UserLogin;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserService {
    /*用户登录*/
    SysUser checkLogin(UserLogin userLogin);
    /*手机验证码登录*/
    SysUser checkLoginByPhone(UserLogin userLogin2);
    /*查询用户是否以注册*/
    SysUser selectUsername(RegisterVo registerVo);
    /*查询手机是否已被注册*/
    SysUser selectPhone(RegisterVo registerVo);
    /*新增*/
    int addUser(SysUser sysUser);
    //根据用户id获取用户
    SysUser getUser(String id);
    //获取当前用户的发起预约权限
    SysUserPermission userPermission(String userId);
    //新增用户权限
    boolean addUserPermission(SysUserPermission sysUserPermission);
    //查询所有用户
    List<SysUser>allUser();
}
